# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: team/kde <bribbers@disroot.org>

# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=kde-frameworks
pkgname=oxygen-icons5
pkgver=5.113.0
pkgrel=0
arch="noarch !armhf" # armhf blocked by extra-cmake-modules
pkgdesc="Oxygen icon theme"
url="https://community.kde.org/Frameworks"
license="LGPL-2.1-or-later"
makedepends="$depends_dev
	extra-cmake-modules
	fdupes
	qt5-qtbase-dev
	samurai
	"
_repo_url="https://invent.kde.org/frameworks/oxygen-icons5.git"
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/oxygen-icons-$pkgver.tar.xz"
builddir="$srcdir/oxygen-icons-$pkgver"

replaces="oxygen-icons<=5.110.0-r0"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_QCH=ON
	cmake --build build
}

check() {
	ctest --test-dir build --output-on-failure
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
0674e2df6d2c4c676dc4bf969dda487bf4936978d8990f6f9a2824afe855f1e4f122b52f80d0ccee98419a31e309be6bac314aa525293902f3f8770aec90b574  oxygen-icons-5.113.0.tar.xz
"
